import request from '@/utils/request'

export default {
    //带条件分页查询会员列表
    getUserInfos(pageNum,pageSize,searchObj){
        return request({
            url:`/admin/core/userInfo/list/${pageNum}/${pageSize}`,
            method:'GET',
            params: searchObj
        })
    },
    lock(id,type){
        return request({
            url: `/admin/core/userInfo/lock/${id}/${type}`,
            method: "PUT",
        }) 
    },

    getLoginRecords(userInfoId){
        return request({
            url: `/admin/core/userLoginRecord/list/${userInfoId}`,
            method: "GET",
        }) 
    },
}